import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
let cityName = "北京";
cityName = localStorage.city;
const state = {
	city:cityName
}
const mutations={
	changeCitys(state,cityname){
		state.city = cityname;
		localStorage.city = cityname;
	}
}
export default new Vuex.Store({
	state,
	mutations
})